from itertools import count

s=input().strip()
count={}
for char in s:
    count[char]=count.get(char,0)+1
print(count)